<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
String contextPath = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆日志</title>
<jsp:include page="/inc/inc.jsp" />
<script type="text/javascript">
var contextPath = '<%=contextPath%>';
var action = 'onlineUserAction';
$(function(){
	<%=request.getAttribute("js")%>
}); 

function find(){
	vo=[];
	var userNo = $("#userNo").val();
	var name = $('#userName').val();
	var isLogin = $('#isLogin').combobox('getValue');
	if(userNo!=null&&userNo!="")
		vo.push({name:'userNo',type:'String',logic:'and',operators:'like',value:userNo});
	if(name!=null&&name!="")
		vo.push({name:'userName',type:'String',logic:'and',operators:'like',value:name});
	if(isLogin!=null&&isLogin!="")
		vo.push({name:'isLogin',type:'String',logic:'and',operators:'=',value:isLogin});	
    $('#grid').datagrid('load',{
        conditions: obj2json(vo)
   });
}
</script>
</head>
<body> 
	<div id="tb">
		  <span>账号：</span><input id="userNo" name="userNo" type="text" style="width: 100px;">
		  <span>用户名：</span><input id="userName" name="userName" type="text" style="width: 100px;">
		  <span>登陆状态：</span>
		  <select id="isLogin" name="isLogin" class="easyui-combobox" style="width:100px;">
			 <option value=""></option>
			 <option value="1">成功</option>
			 <option value="2">失败</option>
		 </select>
		  <a class="easyui-linkbutton" plain="true" onclick="find()" iconCls="icon-search">查询</a>
	</div>
	<table id="grid" toolbar="#tb" border="0"></table>
</body>
</html>